/** 
 * @ProjectName: platform
 * @FileName: MainView.js
 * @PackageName:  webapp/app/view/example/form/radio
 * @Description:  单选框
 * @Author :  JasonWu (15909910367@163.com)
 * @Date:  2021年11月10日 
 * @Copyright (c) 2020-2025, 15909910367@163.com All Rights Reserved. 
 * 
 */
Ext.define('Jason.view.example.form.radio.Radio', {
    extend: 'Ext.container.Container',
    requires: [
        'Wys.button.DefaultBtn',
        'Ext.panel.Panel'
    ],
    items: [{
        xtype: 'container',
        margin: 7,
        defaults: { margin: 3 },
        items: [
            { xtype: 'label', text: '默认单选' },
            { xtype: 'radiofield', text: '张三', name: 'name' },
            { xtype: 'radiofield', text: '李四', name: 'name' },
            { xtype: 'radiofield', text: '王二麻子', name: 'name' }
        ]
    }, {
        xtype: 'radiogroup',
        fieldLabel: '分组单选',
        name: 'rb-custwidth',
        items: [
            { boxLabel: 'Item 1', inputValue: 1 },
            { boxLabel: 'Item 2', inputValue: 2, checked: true },
            { boxLabel: 'Item 3', inputValue: 3 }
        ]
    }, {
        xtype: 'codeField',
        readOnly: true,
        width: '97%',
        margin: '0px 7px',
        value: "调用方法："
    }]
});